package com.fatmeraid.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "商品类型实体类")
@TableName("product_type")
public class ProductType {
	@Schema(description = "商品类型id")
	@TableId(type = IdType.AUTO, value = "type_id")
	private Integer typeId;

	@Schema(description = "商品类型名称")
	@TableField(value = "type_name") // 指定数据库字段
	private String typeName;

	@Schema(description = "商品类型描述")
	private String description;

	@Schema(description = "创建时间")
	private LocalDateTime createTime;

	@Schema(description = "状态：0-禁用，1-启用")
	private Integer status;
}
